package com.aizhixin.lab.docker.repository;

import com.aizhixin.lab.docker.entity.ChapterImages;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ChapterImagesRepository extends JpaRepository<ChapterImages,String> {
    ChapterImages findAllByChapterId(Long chapterId);
    void deleteAllByChapterId(Long chapterId);
    Integer deleteByCourseId(String courseId);
    List<ChapterImages> findByChapterIdIn(List<Long> chapterIds);
}
